from django.contrib import admin
from .models import *
# Register your models here.

#修改goods的admin的显示
class GoodsInfoAdmin(admin.ModelAdmin):
    #显示
    list_display = ['id','gtitle','gprice','gkucun','gtype']
    #每页显示10个
    list_per_page = 10
    #搜索框
    search_fields = ['gtitle','gcontent',]
    #有右边快速连接
    list_filter = ['gtype']


admin.site.register(TypeInfo)
admin.site.register(GoodsInfo,GoodsInfoAdmin)